/**
 * Project: Utilities <br>
 * Package: org.leumasjaffe.util
 */
package org.leumasjaffe.builder;

import org.eclipse.jdt.annotation.NonNullByDefault;

/**
 * Class org.leumasjaffe.util..BuilderChecker in file BuilderChecker.java <br>
 * 
 * @author leumasjaffe
 * @version Jun 9, 2013
 * Created on: Jun 9, 2013
 * 
 */
@NonNullByDefault
public class BuilderChecker {
	private final boolean[] hasBeenSet;
	
	public BuilderChecker(int numArgs) {
		this.hasBeenSet = new boolean[numArgs];
	}
	
	/**
	 * @return
	 */
	public boolean isFilled() {
		boolean filled = true;
		for (boolean b : this.hasBeenSet) {
			filled &= b;
		}
		return filled;
	}

	/**
	 * @param paramNumber
	 */
	public void set(int paramNumber) {
		this.hasBeenSet[paramNumber] = true;
	}
	
}
